package com.lagou.edu.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

//@RefreshScope
//@Configuration
public class RegisterLimitConfig {
    @Value("${register.limitMinutes}")
    private int limitMinutes;

    @Value("${register.limitCount}")
    private int limitCount;

    public int getLimitMinutes() {
        return limitMinutes;
    }

    public void setLimitMinutes(int limitMinutes) {
        this.limitMinutes = limitMinutes;
    }

    public int getLimitCount() {
        return limitCount;
    }

    public void setLimitCount(int limitCount) {
        this.limitCount = limitCount;
    }

    @Override
    public String toString() {
        return "RegisterLimitConfig{" +
                "limitMinutes=" + limitMinutes +
                ", limitCount=" + limitCount +
                '}';
    }
}
